package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.File;

/**
 * 设备管理业务对象 device
 *
 * @author nbacheng
 * @date 2024-05-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class FileBo extends BaseEntity {
    @NotNull(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private MultipartFile file;
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String path;
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceName;
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String version;
}
